<template>
  <el-config-provider :size="size" :locale="zhCn">
    <router-view></router-view>
  </el-config-provider>
</template>

<script setup lang="ts">
import zhCn from "element-plus/dist/locale/zh-cn.mjs"
import { useAppStore } from "@/stores/app"
import { useGenerateTheme } from "@/hooks/useGenerateTheme"
const store = useAppStore()
// eslint-disable-next-line no-undef
const { size } = storeToRefs(store)

useGenerateTheme()
</script>
